package shop.service;

import shop.pojo.Supplier;

import java.util.List;

public interface SysSupplierService {
    Integer getSupplierCount(String querySupCode, String querySupName);

    List<Supplier> getSupplierList(String querySupCode, String querySupName, Integer pageIndex, int pageSize);

    Supplier getSupplierDetail(Integer supId);

    int update(Supplier supplier);

    boolean supplierExistsById(Integer supId);

    Integer deleteSupplierById(Integer supId);

    boolean add(Supplier supplier);

//    Supplier getSupplierById(Integer );

    List<Supplier> getSupnameAndId();
}
